package com.example.springboot_demo.pojo;

import lombok.Data;

@Data
public class Animal {

    private String name;

    private Long id;

    public void eat(){
        System.out.println("动物吃");
    }

    public Animal() {
        System.out.println("动物实例化#######################3");
    }

    @Override
    public String toString() {
        return "动物类testing";
    }
}
